/**
 * 
 */
package com.jie.eclipse.pan.editors;

import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.swt.graphics.Image;
import org.eclipse.ui.PartInitException;
import org.eclipse.ui.forms.editor.FormEditor;

import com.jie.eclipse.pan.editors.form.LogPage;
import com.jie.eclipse.pan.editors.utils.PanImageHelper;

/**
 * @author yanjie
 *
 */
public class LogEditor extends FormEditor{
	private LogPage logPage = null;
	
	@Override
	protected void addPages() {
		logPage = new LogPage(this);
		try {
			addPage(this.logPage);
		} catch (PartInitException e) {
			e.printStackTrace();
		}
	}

	/* (non-Javadoc)
	 * @see org.eclipse.ui.part.EditorPart#doSave(org.eclipse.core.runtime.IProgressMonitor)
	 */
	@Override
	public void doSave(IProgressMonitor arg0) {
		// TODO Auto-generated method stub
		
	}

	/* (non-Javadoc)
	 * @see org.eclipse.ui.part.EditorPart#doSaveAs()
	 */
	@Override
	public void doSaveAs() {
		// TODO Auto-generated method stub
		
	}

	/* (non-Javadoc)
	 * @see org.eclipse.ui.part.EditorPart#isSaveAsAllowed()
	 */
	@Override
	public boolean isSaveAsAllowed() {
		// TODO Auto-generated method stub
		return false;
	}
	
	@Override
	public Image getTitleImage() {
		return PanImageHelper.getInstance().getImage("icons/icon_gear.gif");
	}
	
}
